package web;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.panel.FeedbackPanel;

public class AbstractPage extends WebPage{
	private static final long serialVersionUID = 1L;
	protected FeedbackPanel feedback;

	public AbstractPage() {
		this.add(
			new Menu(),
			new FeedbackPanel("feedback")
		);
		this.setOutputMarkupId(true);
	}
	
	protected void refrescarFeedback(AjaxRequestTarget target){
		target.add(this.feedback);
	}
}